<?php if ($this->configuration->getValue('cart.object_actions')): ?>
<td>
  <ul class="sf_admin_td_actions">
<?php foreach ($this->configuration->getValue('cart.object_actions') as $name => $params): ?>
<?php if ('_cartDelete' == $name): ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php if ( <?php echo '$' . $this->getSingularName(  ) . '->' . $params['condition'] ?>() ):  ?]
    <?php endif; ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->linkToCartDelete($'.$this->getSingularName().', '.$this->asPhp($params).') ?]', $params) ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php endif; ?]
    <?php endif; ?>
<?php elseif ('_delete' == $name): ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php if ( <?php echo '$' . $this->getSingularName(  ) . '->' . $params['condition'] ?>() ):  ?]
    <?php endif; ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->linkToDelete($'.$this->getSingularName().', '.$this->asPhp($params).') ?]', $params) ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php endif; ?]
    <?php endif; ?>
<?php elseif ('_edit' == $name): ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php if ( <?php echo '$' . $this->getSingularName(  ) . '->' . $params['condition'] ?>() ):  ?]
    <?php endif; ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->linkToEdit($'.$this->getSingularName().', '.$this->asPhp($params).') ?]', $params) ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php endif; ?]
    <?php endif; ?>
<?php elseif ('_show' == $name): ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php if ( <?php echo '$' . $this->getSingularName(  ) . '->' . $params['condition'] ?>() ):  ?]
    <?php endif; ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->linkToShow($'.$this->getSingularName().', '.$this->asPhp($params).') ?]', $params) ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php endif; ?]
    <?php endif; ?>
<?php else: ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php if ( <?php echo '$' . $this->getSingularName(  ) . '->' . $params['condition'] ?>() ):  ?]
    <?php endif; ?>
    <li class="sf_admin_action_<?php echo $params['class_suffix'] ?>">
      <?php echo $this->addCredentialCondition($this->getLinkToAction($name, $params, true), $params) ?>
    <?php if ( isset( $params['condition'] ) ): ?>
      [?php endif; ?]
    <?php endif; ?>
    </li>
<?php endif; ?>
<?php endforeach; ?>
  </ul>
</td>
<?php endif; ?>

